package com.syf.chatting.Dao;

import com.syf.chatting.domain.User;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by sunyf on 2017/10/10.
 */
public interface UserRepository extends JpaRepository<User, Long> {
    User findByName(String name);

    User findByPhoneOrNameAndAppId(Long phone,String name,Long appId);

    User findById(long id);

    List<User> findByNameLike(String name);

}
